package com.ruoyi.mixuebingcheng.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单状态对象 orders
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("orders")
public class Orders extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 订单状态 1待付款，2待派送，3已派送，4已完成
     */
    private Long status;
    /**
     * 订单号
     */
    private String orderNumber;
    /**
     * 结账时间
     */
    private Date checkoutTime;
    /**
     * 实收金额
     */
    private BigDecimal amount;
    /**
     * 优惠券id
     */
    private Long couponId;
    /**
     * 用户id
     */
    private Long userId;

}
